﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Service.Model;
using Service.Service;

namespace Template.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        private readonly TestService _service;
        public TestController(TestService service) 
        {
            _service = service;
        }

        [HttpGet]
        public List<Test> GetTests() 
        {
            return _service.GetTests();
        }
    }
}
